/*
 * @Author: boyyang
 * @Date: 2022-01-02 17:43:10
 * @LastEditTime: 2022-02-19 16:10:24
 * @LastEditors: boyyang
 * @Description: 
 * @FilePath: \boyyang\src\router\asyncRoutes.ts
 */


import type { RouteRecordRaw } from 'vue-router'

const asyncRoutes: Array<RouteRecordRaw> = [
    {
        path: '/gameVideoExhibition',
        name: 'GameVideoExhibition',
        component: () => import('@/views/gameVideoExhibition/index.vue'),
        meta: {
            title: '游戏视频',
            roles: ['admin', 'user']
        }
    },
    {
        path: '/imagesUpload',
        name: 'ImagesUpload',
        component: () => import('@/views/imagesUpload/index.vue'),
        meta: {
            title: '文件上传',
            roles: ['admin', 'user']
        }
    },
    {
        path: '/imagesExhibition',
        name: 'ImagesExhibition',
        component: () => import('@/views/imagesExhibtion/index.vue'),
        meta: {
            title: '图片展',
            roles: ['admin', 'user']
        }
    },
    {
        path: '/blog',
        name: 'Blog',
        component: () => import('@/views/blog/index.vue'),
        meta: {
            title: '博客'
        }
    },
    {
        path: '/blogDetail',
        name: 'BlogDetail',
        component: () => import('@/views/blogDetail/index.vue'),
        meta: {
            title: '博客详情'
        }
    },
    {
        path: '/chatRoom',
        name: 'ChatRoom',
        component: () => import('@/views/chatRoom/index.vue'),
        meta: {
            title: '聊天室'
        }
    },
    {
        path: '/music',
        name: 'Music',
        component: () => import('@/views/music/index.vue'),
        meta: {
            title: '音乐'
        }
    }
]

export {
    asyncRoutes
}
